package com.rentong.wx.sys.service.impl;

import com.rentong.wx.sys.dao.SysCityDao;
import com.rentong.wx.sys.domain.SysCityEntity;
import com.rentong.wx.sys.service.SysCityService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service
public class SysCityServiceImpl implements SysCityService {

    @Resource
    private SysCityDao sysCityDao;


    @Transactional(rollbackFor = Exception.class)
    @Override
    public List<SysCityEntity> getAllCity(){
        return sysCityDao.getAllCity();
    }


    @Transactional(rollbackFor = Exception.class)
    @Override
    public List<SysCityEntity> getHotCity(){
        return sysCityDao.getHotCity();
    }


    @Transactional(rollbackFor = Exception.class)
    @Override
    public List<SysCityEntity> getProvinceAndCityLabel(Long pid){
        return sysCityDao.getProvinceAndCityLabel(pid);
    }




}